<?php echo View::make('admin.common.header'); ?>

<div id="header">
    <?php echo View::make('admin.common.left')->with('is_dashboard', true);?>
    <div class="fr1">
        
        <div class="main-content">
	
            <div class="box-positon">
                    <div class="rpos">当前位置: 用户管理 - 后台用户管理 - 添加/编辑用户</div>
                    <form class="ropt" action="/admin/manager/index">
                            <input type="submit" value="返回列表" class="return-button">
                    </form>
                    <div class="clear"></div>
            </div>

            <div class="body-box" id="edit">
			<form method="post" action="/admin/manager/grant" id="jvForm">
                            <table width="100%" class="pn-ftable" cellpadding="2" cellspacing="1" border="0">
				<tbody>
                                        <tr>
						<td width="12%" class="pn-flabel pn-flabel-h">用户名:</td>
						<td colspan="3" width="88%" class="pn-fcontent">
							<input type="text" name="username" size="30" value="<?php echo $user['username'];?>" />
						</td>
					</tr>
					<?php if (empty($user['username'])): ?>
					<tr>
						<td width="12%" class="pn-flabel pn-flabel-h">初始密码:</td>
						<td colspan="3" width="88%" class="pn-fcontent"><input type="password" name="password" size="30"></td>
					</tr>					
					<tr>
						<td width="12%" class="pn-flabel pn-flabel-h">确认密码:</td>
						<td colspan="3" width="88%" class="pn-fcontent"><input type="password" name="confirm" size="30"></td>
					</tr>					
					<?php else :?>
						<input type="hidden" name="uid" value="<?php echo $user["uid"];?>"/>
					<?php endif; ?>
                                         <tr>
						<td width="12%" class="pn-flabel pn-flabel-h">邮箱:</td>
						<td colspan="3" width="88%" class="pn-fcontent">
							<input type="text" name="email" size="30" value="<?php echo $user['email'];?>" />
						</td>
					</tr>
                                         <tr>
						<td width="12%" class="pn-flabel pn-flabel-h">手机:</td>
						<td colspan="3" width="88%" class="pn-fcontent">
							<input type="text" name="phone" size="30"value="<?php echo $user['phone'];?>" />
						</td>
					</tr>
                                        <tr>
						<td width="12%" class="pn-flabel pn-flabel-h">性别:</td>
						<td colspan="3" width="88%" class="pn-fcontent">
							<input type="radio" name="gender" value="1" <?php if($user['gender'] == '1'): ?>checked="checked"<?php endif; ?>>男
							<input type="radio" name="gender" value="2" <?php if($user['gender'] == '2'): ?>checked="checked"<?php endif; ?>>女
						</td>
					</tr>
					<tr>
						<td width="12%" class="pn-flabel pn-flabel-h">用户状态:</td>
						<td colspan="3" width="88%" class="pn-fcontent">
							<input type="radio" name="is_checked" value="1" <?php if($user['gender'] == '1'): ?>checked="checked"<?php endif; ?>>正常
							<input type="radio" name="is_checked" value="-1" <?php if($user['gender'] == '-1'): ?>checked="checked"<?php endif; ?>>冻结
						</td>
					</tr>
					<tr>
						<td colspan="4" class="pn-fbutton">
						<span class="error"></span>
						</td>
					</tr>
					<tr>
						<td colspan="4" class="pn-fbutton">
						<input type="submit" value="提交" class="submit"> &nbsp; 
						<input type="reset" value="重置" class="reset">
						</td>
					</tr>
				</tbody>
                            </table>
			</form>
		</div>
        </div>
        
    </div>    
</div>

<?php echo View::make('admin.common.footer'); ?>
